// JavaScript Document
var nFocus= 0; //设置当前状态
var nFlag = false;
var newsLiTab , newsDivTab;

//var $ = function($){
//		return document.getElementById($);
//	};
	
	newsLiTab = $("pro_nav").getElementsByTagName("li");
	newsDivTab = [$("tab_con1") , $("tab_con2") , $("tab_con3")];
	for(var i=0;i<newsLiTab.length;i++){
		(function(i){
			var t = newsLiTab[i];			
			t.onmouseover = function(){
				if(nFocus != i){
					newsLiTab[nFocus].className = "";
					newsDivTab[nFocus].style.display = "none";
					nFocus = i;
					newsLiTab[nFocus].className = "cur";
					newsDivTab[nFocus].style.display = "block";
				}
				nFlag = true;
			};
			t.onmouseout = function(){
				nFlag = false;
			};
		})(i);
	}
